package com.dk.feign.fallback;

import com.dk.data.Result;
import com.dk.em.ConstantEnum;
import com.dk.feign.VehicleServiceFeign;
import org.springframework.stereotype.Component;

/**
 * @ClassName VehicleServiceFeignImpl
 * @Deacription TODO
 * @Author hqq
 * @Date 2021/11/1 16:56
 * @Version 1.0
 **/
@Component  //实现类放容器,重写接口中的方法
public class VehicleServiceFeignBack implements VehicleServiceFeign {

    @Override
    public Result selectById(Long id) {
        return Result.bulid(ConstantEnum.FAIL_FALLBACK);
    }
}
